package net.maku.project.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author lvpb
 * @version 1.0.0
 * @date 2024/7/11 13:46
 * @description InstanceNode
 */
@Data
@TableName(value = "instance_node",autoResultMap = true)
public class InstanceNode implements Serializable {

    @TableId
    private Long id;

    private Long stageId;

    private String nodeName;

    private Boolean needConfirm;

    private Integer processDay;

    @TableField(value = "next_stage",typeHandler = JacksonTypeHandler.class)
    private List<Long> nextStage;

    private Integer nextType;

    private Integer handlerType;

    @TableField(value = "handler_id",typeHandler = JacksonTypeHandler.class)
    private List<Long> handlerId;

    private Integer notifyType;

    @TableField(value = "notify_id",typeHandler = JacksonTypeHandler.class)
    private List<Long> notifyId;
}
